/*
*Copyright 2021-2023 NERCIS
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/

package cn.ac.nercis.pes.community.constant;

/**
 * 基础常量类
 * @author zpy
 * @version 1.0.0
 */
public interface AppConstants {
    /**
     * ICON图片Key
     */
    String ICON_FONT_KEY = "icon.svg";
    /**
     * App图标
     */
    String APP_ICON = "/icons/icon_logo.png";
    /**
     * Bean模式：每次请求创建新实例
     */
    String SCOPE_PROTOTYPE = "prototype";
    /**
     * 界面标签展示最大文本内容
     */
    Integer MAX_SHOW_TEXT_LENGTH = 30;
    /**
     * 图片压缩质量（0~1 低到高）
     */
    Float IMAGE_COMPRESS = 0.75f;
    /**
     * 截图默认文件格式
     */
    String SCREENSHOT_DEFAULT_FORMAT = "png";

    /**
     * 重复数据数量
     */
    Integer DUPLICATE_DATA_COUNT = 2;
    Integer NUM_CORE_BG_THREADS = 6;
    Integer MAX_POOL_SIZE = 30;
    Long BG_THREAD_KEEPALIVE_SECONDS = 60L;
    /**
     * 系统测评窗口标题名
     */
    String EVALUATION_WIN_TITLE_FORMAT = "密评-%s";
    /**
     * 测评记录内容最大长度
     */
    Integer MAX_RECORD_CONTENT_LENGTH = 2000;

    /**
     * 密评报告文件名
     */
    String MP_BG_FILE_NAME = "密码应用安全性评估报告";
    /**
     * 密评方案文件名
     */
    String MP_FA_FILE_NAME = "密码应用安全性评估方案";
}